noinst_PROGRAMS = \
				  recv-test \
				  send-test \
				  server-cycle2snd \
				  client-cycle2snd \
				  test-recv-send \
				  test-send-recv

common_ldflags = \
				 ${top_builddir}/src/libcanbus.la

recv_test_SOURCE = recv-test.c
recv_test_LDADD = $(common_ldflags)

send_test_SOURCE = send-test.c
send_test_LDADD = $(common_ldflags)

server_cycle2snd_SOURCE = server-cycle2snd.c
server_cycle2snd_LDADD = $(common_ldflags)

client_cycle2snd_SOURCE = server-cycle2snd.c
client_cycle2snd_LDADD = $(common_ldflags)

test_recv_send_SOURCE = test-recv_send.c
test_recv_send_LDADD = $(common_ldflags)

test_send_recv_SOURCE = test-send_recv.c
test_send_recv_LDADD = $(common_ldflags)

AM_CPPFLAGS = \
			  -D_FILE_OFFSET_BITS=64 \
			  -DSO_RXQ_OVFL=40 \
			  -DPF_CAN=29 \
			  -DAF_CAN=PF_CAN \
			  -include $(top_builddir)/config.h \
			  -DSYSCONFDIR=\""$(sysconfdir)"\" \
			  -DLIBEXECDIR=\""$(libexecdir)"\" \
			  -I${top_srcdir}/src \
			  -I${top_builddir}/src

AM_CFLAGS = ${my_CFLAGS}
#AM_CFLAGS += --static
#AM_LDFLAGS = -static

CLEANFILES = *~
